package com.example.newdemo.view.recyclerView;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;

import com.example.newdemo.R;
import com.example.newdemo.view.recyclerView.demo2.RecyclerViewActivity2;
import com.example.newdemo.view.recyclerView.demo3.RecyclerViewActivity3;
import com.example.newdemo.view.recyclerView.demo4.RecyclerViewActivity4;
import com.example.newdemo.view.recyclerView.demo5.RecyclerViewActivity5;
import com.example.newdemo.view.recyclerView.demo6.RecyclerViewActivity6;
import com.example.newdemo.view.recyclerView.grid.GridRecyclerViewDemoActivity;
import com.example.newdemo.view.recyclerView.scale.ScaleRecyclerViewDemoActivity;


public class RecyclerViewActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.act_recycler_view_main);
    }

    public void jump(View view){
        Intent intent = new Intent();
        switch (view.getId()){
            case R.id.btn_1:
                intent.setClass(this, GridRecyclerViewDemoActivity.class);
                break;
            case R.id.btn_2:
                intent.setClass(this, RecyclerViewActivity2.class);
                break;
            case R.id.btn_3:
                intent.setClass(this, RecyclerViewActivity3.class);
                break;
            case R.id.btn_4:
                intent.setClass(this, RecyclerViewActivity4.class);
                break;
            case R.id.btn_5:
                intent.setClass(this, RecyclerViewActivity5.class);
                break;
            case R.id.btn_6:
                intent.setClass(this, RecyclerViewActivity6.class);
                break;

                case R.id.btn_7:
                intent.setClass(this, ScaleRecyclerViewDemoActivity.class);
                break;


        }
        startActivity(intent);
    }

}
